Skip to content

Conversation

@likhith5697
Copy link
Contributor

This PR optimizes SlidingWindowGatherer by:

  • Removing the unused finisher() method.
  • Always pushing the current state in integrator() since state.size() never reaches 3.
  • Using ArrayDeque efficiently for O(1) removeFirst operation.

@likhith5697
Copy link
Contributor Author

Hi, I’ve implemented the suggested changes:

  • Removed the unused finisher() method.
  • Always pushing the current state in integrator() since state.size() never reaches 3.
  • Using ArrayDeque efficiently for O(1) removeFirst operation.

The build and tests passed successfully. The PR is ready for review: #18855

@lor6 lor6 merged commit be7e554 into eugenp:master Nov 7, 2025
1 check passed
@lor6
Copy link
Collaborator

lor6 commented Nov 7, 2025

Thanks @likhith5697 I've merged the PR here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants